<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@  taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="en">
<%@ include file="../common/head.jsp"%>
<body class="fix-header fix-sidebar">

	</script>
	<!-- Preloader - style you can find in spinners.css -->
	<div class="preloader">
		<svg class="circular" viewBox="25 25 50 50">
				<circle class="path" cx="50" cy="50" r="20" fill="none"
				stroke-width="2" stroke-miterlimit="10" /> </svg>
	</div>
	<!-- Main wrapper  -->
	<div id="main-wrapper">
		<!-- header header  -->
		<%@ include file="../common/header.jsp"%>
		<!-- End header header -->
		<!-- Left Sidebar  -->
		<%@ include file="../common/nav.jsp"%>
		<!-- End Left Sidebar  -->
		<!-- Page wrapper  -->
		<div class="page-wrapper">
			<!-- 锐高软件 -->
			<%@ include file="../common/ruigao.jsp"%>

			<!-- Container fluid  -->
			<!--
            	作者：offline
            	时间：2018-04-01
            	描述：内容
            -->
			<div class="container-fluid">
				<!-- Start Page Content -->
				<div class="row">
					<div class="col-12">
						<div class="card">
							<div class="card-body">
								<div class="card-content">
									<!-- Left sidebar -->
									<div class="inbox-leftbar">

										<a href="${pageContext.request.contextPath}/messageserviceselect"
											class="btn btn-danger btn-block waves-effect waves-light">返回列表</a>
									</div>
									<!-- End Left sidebar -->
									<div class="inbox-rightbar">

										<div class="m-t-10 m-b-20" role="toolbar">
											<div class="btn-group">
												<button type="button" class="btn btn-light waves-effect">
													<i class="mdi mdi-archive font-18 vertical-middle"></i>
												</button>
												<button type="button" class="btn btn-light waves-effect">
													<i class="mdi mdi-alert-octagon font-18 vertical-middle"></i>
												</button>
												<button type="button" class="btn btn-light waves-effect">
													<i class="mdi mdi-delete-variant font-18 vertical-middle"></i>
												</button>
											</div>

											<div class="btn-group">
												<button type="button"
													class="btn btn-light dropdown-toggle waves-effect"
													data-toggle="dropdown" aria-expanded="false">
													更多操作 <span class="caret m-l-5"></span>
												</button>
												<div class="dropdown-menu">

													<a class="dropdown-item" href="javascript: void(0);">1</a>
													<a class="dropdown-item" href="javascript: void(0);">2</a>
													<a class="dropdown-item" href="javascript: void(0);">3</a>
													<a class="dropdown-item" href="javascript: void(0);">4</a>
												</div>
											</div>
										</div>
									</div>

									<c:forEach items="${ mess}" var="message">
										<div class="mt-4">
											<div class="media mb-4 mt-1">
												<h6>标题:${message.messageTitle}</h6>												
												<div class="media-body">
													<span class="pull-right">时间:<fmt:formatDate  type="both" value="${message.messageTimes }" pattern="yyyy-MM-dd HH:mm:ss" /></span>
												</div>
											</div>
											<hr />
											<p>${message.messageContent }</p>
											<hr />
										</div>
										<div class="media mb-4 mt-1">
										<c:forEach var="companys" items="${companyList }">
											<c:if test="${message.companyId eq companys.companyId }">
												<span class="pull-right">${companys.companyName }</span>
											</c:if>
										</c:forEach>
										</div>
									</c:forEach>
								</div>
							</div>
						</div>
					</div>
				</div>
				<!-- End PAge Content -->
			</div>
			<!-- End Container fluid  -->

		</div>
	</div>
	<!-- End Page wrapper  -->
	<!-- footer -->
	<%@ include file="../common/footer.jsp"%>
	<!-- End footer -->
	<%@ include file="../common/js.jsp"%>


</body>

</html>